package cn.daniel.goods.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Daniel_li
 * @since 2020-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_info")
@ApiModel(value="GoodsInfo对象", description="Goods的基本信息")
public class GoodsInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "闲置物品ID")
    @TableId(value = "goods_id", type = IdType.ID_WORKER_STR)
    private String goodsId;

    @ApiModelProperty(value = "闲置物品名称")
    private String goodsName;

    @ApiModelProperty(value = "闲置物品描述")
    private String goodsDesc;

    @ApiModelProperty(value = "闲置物品简介")
    private String goodsText;

    @ApiModelProperty(value = "闲置物品封面图片")
    private String goodsCover;

    @ApiModelProperty(value = "闲置物品分类ID")
    private String goodsSortId;

    @ApiModelProperty(value = "闲置物品品牌")
    private String goodsBrand;

    @ApiModelProperty(value = "闲置物品原先被购买的日期时间")
    private Date goodsBuyTime;

    @ApiModelProperty(value = "闲置物品是否审核：0 未审核；1 审核未通过；2 审核通过")
    private Integer goodsCheck;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "浏览数量")
    private Long viewCount;

    @ApiModelProperty(value = "乐观锁")
    private Long version;

    @ApiModelProperty(value = "逻辑删除：1 已删除，0 未删除")
    private Integer isDeteted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    @ApiModelProperty(value = "闲置物品出售的用户ID")
    private String userId;


}
